{% extends "learning_logs/base.html" %}

{% block content %}
<p><a href="{% url 'learning_logs:topic' topic.id %}"> {{ topic.text }} </a></p>

<p>编辑条目：</p>

<form action="{% url 'learning_logs:edit_entry' entry.id %}" method="post" >
    {% csrf_token %}
    {{ form.as_p }}
    <button type="submit">保存</button>
</form> 

{% endblock content %}